package com.migu.contacts;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.frank.libandroid.BaseActivity;
import com.frank.libandroid.butterknife.OnClick;
import com.frank.libandroid.widget.BaseView;
import com.migu.contacts.databinding.CommonHeaderBinding;

public class Header extends BaseView<CommonHeaderBinding> {


    public Header(@NonNull Context context) {
        super(context);
    }

    public Header(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public Header(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @OnClick(R.id.back)
    public void onBack() {
        ((BaseActivity) getContext()).onBackPressed();
    }

}
